<?php
/**
 * Created by PhpStorm.
 * User: home
 * Date: 2019/2/22
 * Time: 16:04
 */

?>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="dist/DPlayer.min.css">
    <script src="dist/hls.js"></script>
    <script src="dist/DPlayer.min.js"></script>
    <style>
        #dplayer{
            width: 700px;
            height: 400px;
        }
    </style>
</head>
<body>
<div id="dplayer"></div>
<script>
    const dp = new DPlayer({
        container: document.querySelector('#dplayer'),
        autoplay:true,
        live: true,
        video: {
            url: 'http://dlhls.cdn.zhanqi.tv/zqlive/123407_XhQs9.m3u8',type:'hls'
        }
    });
</script>
</body>
</html>
